// FetionStatusIcon.cpp
// Heihaier <admin@heihaier.org>
// http://www.heihaier.org

#include "FetionStatusIcon.h"

FetionStatusIcon::FetionStatusIcon(int icon)
{
	set_tooltip("Linux Fetion");
	set_icon(icon);
}

FetionStatusIcon::~FetionStatusIcon()
{
}

void FetionStatusIcon::set_icon(int icon)
{
	switch(icon)
	{
	case 10:	// online
		set_from_file("./image/systray/online.gif");
		break;
	case 20:	// busy
		set_from_file("./image/systray/busy.gif");
		break;
	case 30:	// hide
		set_from_file("./image/systray/hide.gif");
		break;
	case 40:	// offline
		set_from_file("./image/systray/offline.gif");
		break;
	case 50:	//away
		set_from_file("./image/systray/away.gif");
		break;
	}
}

